package com.aizhixin.lab.docker.service;

import com.aizhixin.lab.docker.entity.ImageInfo;
import com.aizhixin.lab.docker.repository.ImageInfoRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
@Slf4j
public class ImageInfoService {
    @Autowired
    private ImageInfoRepository imageInfoRepository;
    public ImageInfo getImageInfo(String name){
        return imageInfoRepository.findByImagesName(name);
    }
}
